package j3dscene;

import javax.media.j3d.Background;
import javax.media.j3d.BoundingSphere;
import javax.media.j3d.BranchGroup;
import javax.vecmath.Point3d;

/**
 * Background of the complete scene, white.
 *
 * @author Dominik K.
 * @author Steffen G.
 */
public class SceneBackground extends BranchGroup {

    /**
     * creates Scene Background
     * 
     */
    public SceneBackground() {
        Background background = new Background();
        background.setColor(1.0f, 1.0f, 1.0f);
        BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), Double.MAX_VALUE);
        background.setApplicationBounds(bounds);

        addChild(background);
    }
}
